package com.zw.rpc.example;

import com.zw.rpc.client.RpcClient;
import com.zw.rpc.client.RpcClientConfig;

public class Client {

    public static void main(String[] args) {
        RpcClient rpcClient = new RpcClient(new RpcClientConfig());
        CalcService proxy = rpcClient.getProxy(CalcService.class);
        int add = proxy.add(1, 2);
        int minus = proxy.minus(1, 2);
        System.out.println("add -> " + add);
        System.out.println("minus -> " + minus);
    }

}
